3.1611 \(\int \frac{1}{\left (a+\frac{b}{x}\right ) x^2} \, dx\)

Optimal. Leaf size=13 \[ -\frac{\log \left (a+\frac{b}{x}\right )}{b} \]

[Out]

-(Log[a + b/x]/b)

_______________________________________________________________________________________

Rubi [A]  time = 0.0157886, antiderivative size = 13, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.077 \[ -\frac{\log \left (a+\frac{b}{x}\right )}{b} \]

Antiderivative was successfully verified.

[In]  Int[1/((a + b/x)*x^2),x]

[Out]

-(Log[a + b/x]/b)

_______________________________________________________________________________________

Rubi in Sympy [A]  time = 2.22634, size = 8, normalized size = 0.62 \[ - \frac{\log{\left (a + \frac{b}{x} \right )}}{b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate(1/(a+b/x)/x**2,x)

[Out]

-log(a + b/x)/b

_______________________________________________________________________________________

Mathematica [A]  time = 0.00620895, size = 18, normalized size = 1.38 \[ \frac{\log (x)}{b}-\frac{\log (a x+b)}{b} \]

Antiderivative was successfully verified.

[In]  Integrate[1/((a + b/x)*x^2),x]

[Out]

Log[x]/b - Log[b + a*x]/b

_______________________________________________________________________________________

Maple [A]  time = 0.007, size = 19, normalized size = 1.5 \[{\frac{\ln \left ( x \right ) }{b}}-{\frac{\ln \left ( ax+b \right ) }{b}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int(1/(a+b/x)/x^2,x)

[Out]

ln(x)/b-1/b*ln(a*x+b)

_______________________________________________________________________________________

Maxima [A]  time = 1.44134, size = 18, normalized size = 1.38 \[ -\frac{\log \left (a + \frac{b}{x}\right )}{b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(1/((a + b/x)*x^2),x, algorithm="maxima")

[Out]

-log(a + b/x)/b

_______________________________________________________________________________________

Fricas [A]  time = 0.227326, size = 22, normalized size = 1.69 \[ -\frac{\log \left (a x + b\right ) - \log \left (x\right )}{b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(1/((a + b/x)*x^2),x, algorithm="fricas")

[Out]

-(log(a*x + b) - log(x))/b

_______________________________________________________________________________________

Sympy [A]  time = 0.32607, size = 10, normalized size = 0.77 \[ \frac{\log{\left (x \right )} - \log{\left (x + \frac{b}{a} \right )}}{b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(1/(a+b/x)/x**2,x)

[Out]

(log(x) - log(x + b/a))/b

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.22333, size = 19, normalized size = 1.46 \[ -\frac{{\rm ln}\left ({\left | a + \frac{b}{x} \right |}\right )}{b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate(1/((a + b/x)*x^2),x, algorithm="giac")

[Out]

-ln(abs(a + b/x))/b